package com.dokimet.basedialog;

import android.os.Bundle;
import android.view.Gravity;
import android.view.View;

import androidx.annotation.Nullable;

/**
 * User: fish
 * E-mail: 709913163@qq.com
 * Date: 2022/12/7
 * Time: 15:58
 * describe:
 */
public abstract class CenterDialog extends BaseDialog {

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
       setStyle(STYLE_NO_TITLE, R.style.dialogCenterStyle);
    }

    @Override
    public int getGravity() {
        return Gravity.CENTER;
    }
}
